package com.dji.sdk.self.internal.network;

import com.dji.sdk.self.internal.model.LoginUser;
import com.dji.sdk.self.internal.model.UavCondition;
import com.dji.sdk.self.internal.model.Urls;

import java.util.Map;

import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.Response;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.POST;
import retrofit2.http.Query;

public interface Api {
    //刷新Token
    @GET(Urls.TOKEN_REFRESH)
    Call<ResponseBody> getFreshToken(@Query("rememberme") int rememberme, @Header("Authorization") String token);

    //获取推流地址
    @GET(Urls.STREAM_ADDRESS)
    Call<ResponseBody>getLiveStreamUrl(@Query("serialNumber")String serialNumber,@Header("Authorization") String token);

    //登录
    @POST(Urls.LOGIN)
    Call<ResponseBody> login(@Body LoginUser loginUser);

    //数据回传
    @POST(Urls.CONDITION_PUSH)
    Call<ResponseBody> uavConditionPush(@Body UavCondition condition, @Header("Authorization") String token);



}
